{% extends 'basepl.html' %}
{% block head %}
    <title>Stu-大学课堂教学过程管理系统</title>
    <style>
        #ly>ul>li{
            width: 100px;
            float: left;
            list-style: none;
            line-height: 40px;
            margin-left: 2px;
            background-color: rgba(56, 25, 169, 0.04);
            border: rgba(56, 25, 169, 0.07) solid ;
            text-align: center;
        }
        #gonggao1{
            background-color: ghostwhite;
            border: rgba(56, 25, 169, 0.07) solid ;

            width: 640px;
            height: 590px;
            left: 530px;
            top:0;
            position: absolute;
        }
    </style>
{% endblock head %}
{% block nav %}
<li><a href="/stuIndex">首页</a></li>
<li><a href="#top">大学课程教学过程管理系统</a></li>
<li><a href="/">切换账号</a></li>
<li><a href="#"></a></li>
<li><a href="#">关于</a></li>
<li><a href="/">注销</a></li>
{% endblock nav %}
{% block li %}
    <li><a href="/skebiao">课&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;表</a></li>
    <li><a href="/stuIndex/stuGrade">成&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;绩</a></li>
    <li><a href="/stuIndex/xuanke">选&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;课</a></li>
{% endblock li %}
{% block section %}
<div id="ly">

<h3 align="center">课程</h3>

    <hr>
<ul>
    {% for i in course%}
    <li><a href="/stuIndex/stuTask?cname={{ i }}">{{ i }}</a></li>
    {% endfor %}
</ul>
</div>
<div id="gonggao1">
    <h3 align="center">通知</h3>
    <hr>
    <div id="examtip">
        <h5>考试通知</h5>
        <table >
            {% if examtips %}
                {% for examtip in examtips %}
                    {% for tip in examtip %}
                        <tr>
                            <td width="460px"><a href="/stuIndex/gonggao?tip={{ tip.examname }}"
                            >{{ forloop.counter }}&#9670;{{ tip.examname }}</a></td>
                            <td align="right">{{ tip.etime }}</td>
                        </tr>
                    {% endfor %}
                {% endfor %}
            {% else %}
            <tr><td>暂无考试信息</td></tr>
            {% endif %}
        </table>
    </div>
    <hr color="slateblue">
    <hr color="slateblue">
    <div id="notice">
        <h5>公告</h5>
        <table >
        {% if gonggao %}
            {% for gg in gonggao %}

                    <tr>
                        <td width="460px"><a href="/stuIndex/gonggao?tip={{ gg.id }}"
                        >{{ gg.id }} |
                            {{ gg.gtopic }}</a></td>
                        <td align="right">{{ gg.gtime }}</td>
                    </tr>

            {% endfor %}
        {% else %}
            <tr><td >&#10047暂无公告</td></tr>
        {% endif %}
</table>
    </div>


</div>
{% endblock section %}
